package com.jinsi.service.ylt.iml;

import com.jinsi.mapper.ylt.TurnListMapper;
import com.jinsi.pojo.SyUserAuditTurn;
import com.jinsi.service.ylt.TurnListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ClassName TurnListServiceImpl
 * @Content 申请审核驳回列表接口实现类
 * @Author 姚龙腾
 * @Date 2022/10/12 11:53
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class TurnListServiceImpl implements TurnListService {
    @Autowired
    private TurnListMapper turnListMapper;

    /**
     * 获取全部驳回列表信息
     * @return List<SyUserAuditTurn>
     */
    @Override
    @Transactional(readOnly = true)
    public List<SyUserAuditTurn> getAll() {
        return turnListMapper.getAll();
    }


    /**
     * 根据输入信息进行模糊查询
     * @param userName
     * @param userAccount
     * @param auditTime
     * @return List<SyUserAuditTurn>
     */
    @Override
    @Transactional(readOnly = true)
    public List<SyUserAuditTurn> getAllByLike(
            String userName,
            String userAccount,
            String auditTime) {
        return turnListMapper.getAllByLike(
                userName,
                userAccount,
                auditTime);
    }
}
